Auto merge of #3651 - pkgw:pr-issue-3366, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 7 Feb 2017 22:02:51 +0000 (22:02 +0000)
committerbors <bors@rust-lang.org>
Tue, 7 Feb 2017 22:02:51 +0000 (22:02 +0000)
Attempt to solve #3366, regarding spurious shared library search paths.

This drops `native_dirs` entries that are not within the target output when modifying the (DY)LD_LIBRARY_PATH environment variable before running programs.

CC #3366


Trivial merge